diff --git a/addtoany.module b/addtoany.module
index da490ea..868527c 100644
--- a/addtoany.module
+++ b/addtoany.module
@@ -172,7 +172,11 @@ function addtoany_page_attachments(&$page) {
 
   // Add module's main library, which includes external AddToAny core JS,
   // and the module's CSS.
-  $page['#attached']['library'][] = 'addtoany/addtoany';
+  // Enable the libraries if the current route is not an admin page;
+  $route = \Drupal::routeMatch()->getRouteObject();
+  if (!\Drupal::service('router.admin_context')->isAdminRoute($route)) {
+    $page['#attached']['library'][] = 'addtoany/addtoany';
+  }
 }
 
 /**
